package com.beiding.t;

import com.beiding.jsonanalyzer.AnalyzeApi;

public class Demo implements AnalyzeApi {

    public static void main(String[] args) {
        new Demo().handle();
    }

    private void handle() {
//        Analyzer load = Analyzer.load(new File("doc/test.json"));
//        load
//                .flow()
//                .query(isJsonObject().eq(key("id"), "1"))
//                .branch(key("id"))
//                .eachBranch(analyzeValueNodeBranch -> {
//                    analyzeValueNodeBranch.addition("附加物");
//                })
//                .exec()
//                .forEach(row -> {
//                    System.out.println(row.getBranchNode().getBranch().getAddition(String.class));
//                });

    }

}
